/**/
package com.workcenter.mapper;

import java.util.List;

import com.workcenter.entity.Sys.RoleDO;

public interface RoleMapper {

  /*  List<RoleDO> findByPage(Criteria criteria);

    Long findByPageCount(Criteria criteria);*/

  /*  List<RoleDO> find(RoleDO sysRole);  */

  RoleDO get(Long id);

  List<RoleDO> listRole();

  //  List<RoleDO> listRole();

  int save(RoleDO role);

  int update(RoleDO role);

  int remove(Long id);

  //
  //  @Select("SELECT role_id, role_name, role_sign, remark, user_id_create, gmt_create, gmt_modified FROM sys_role")
  //  @Results({@Result(property = "roleId", column = "role_id"),
  //      @Result(property = "roleName", column = "role_name")})
  //  List<RoleDO> listRole();
  //
  //  @Insert("INSERT INTO sys_role(role_id, role_name, role_sign, remark, user_id_create, gmt_create, gmt_modified)VALUES(#{roleId}, #{roleName}, #{roleSign}, #{remark}, #{userIdCreate}, #{gmtCreate}, #{gmtModified})")
  //  @Options(useGeneratedKeys = true, keyProperty = "roleId")
  //  int save(RoleDO role);
  //
  //  @Delete("DELETE FROM sys_role WHERE role_id=#{id}")
  //  int remove(Long id);
  //
  //  @Select("SELECT role_id, role_name, role_sign, remark, user_id_create, gmt_create, gmt_modified FROM sys_role where role_id = #{roleId}")
  //  @Results({@Result(property = "roleId", column = "role_id"),
  //      @Result(property = "roleName", column = "role_name")})
  //  RoleDO get(Long id);
  //
  //  @Update("update sys_role set role_name = #{roleName}, remark=#{remark} where role_id=#{roleId}")
  //  int update(RoleDO role);
}
